package com.qkm.xinguan.domain.infrastructure.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qkm.xinguan.domain.entity.HouseInfo;

import com.qkm.xinguan.response.Result;
import com.qkm.xinguan.vo.HouseInfoVo;
import com.qkm.xinguan.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 房屋信息
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-12-01 15:13:15
 */
@Mapper
public interface HouseInfoMapper extends BaseMapper<HouseInfo> {

	/**
	 * 根据房屋id设置审核通过
	 *
	 * @param id     房屋id
	 */
	int updateHouseInfoStatusToPassById(Long id);

	/**
	 * 根据房屋id设置审核通过
	 *
	 * @param id     房屋id
	 */
	int updateHouseInfoStatusToFailById(Long id);

	HouseInfo getOnlyById(Long id);

	List<HouseInfo> randomFour();

	int leaseHouseInfoById(Long id);
}
